/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.opgea.appstreet.web.controller;

import com.opgea.appstreet.service.CompanyService;
import com.opgea.appstreet.service.UtilService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 *
 * @author Ramesh
 */
@Controller
@RequestMapping(value="home")
public class HomeController {
    
    @Autowired
    private CompanyService companyService;
    @Autowired
    private UtilService utilService;
    
    
    @RequestMapping(method= RequestMethod.GET)
    public String show(){
        System.out.println("AllCountries: "+utilService.getAllCountries().size());
        System.out.println("AllCities: "+utilService.getAllCities().size());
        System.out.println("AllCitiesByCountry: "+utilService.getCitiesByCountry(new Long(1)).size());
        System.out.println("AllCategories: "+utilService.getAllCategories().size());
        System.out.println("AllSubCategories: "+utilService.getAllSubCategories().size());
        System.out.println("AllSubCategoriesByCategory: "+utilService.getSubCategoriesByCategory(new Long(1)).size());
        return "home";
    }
}
